package com.hzlx.feign2;

import com.hzlx.MesFinishedGoodsInventoryDto;
import com.hzlx.feign2.fallback.FinishInventoryFallbackFactory;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(
        contextId = "materialsService",value = "material-service",fallbackFactory = FinishInventoryFallbackFactory.class
)
public interface FinishInventory {
    @RequiresPermissions("material-service:inventory:goods:list")
    @GetMapping("/inventory/goods/list")
    public TableDataInfo list(MesFinishedGoodsInventoryDto mesFinishedGoodsInventoryDto);
}
